/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding: 20px;
}

.share-manager-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.share-manager-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.share-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dc3545;
}

.status-dot.active {
    background: #28a745;
}

#status-text {
    font-weight: 500;
    font-size: 16px;
}

.user-info-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.user-info-form h3 {
    color: #555;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.share-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-controls button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

#start-share-btn {
    background: #28a745;
    color: white;
}

#start-share-btn:hover {
    background: #218838;
}

#stop-share-btn {
    background: #dc3545;
    color: white;
}

#stop-share-btn:hover {
    background: #c82333;
}

#stop-share-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.share-info {
    background: #e9f7ef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.share-info h3 {
    color: #555;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.info-item label {
    font-weight: 500;
    min-width: 80px;
}

.info-item span {
    flex: 1;
    padding: 5px;
    background: white;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
}

#copy-url-btn {
    padding: 5px 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

#copy-url-btn:hover {
    background: #5a6fd8;
}

.quick-share {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.quick-share h4 {
    color: #555;
    margin-bottom: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.share-btn.wechat {
    background: #07c160;
}

.share-btn.dingtalk {
    background: #0089ff;
}

.share-btn.douyin {
    background: #ff0050;
}

.share-btn.kuaishou {
    background: #ff4900;
}

.share-actions {
    text-align: center;
}

#close-share-manager {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

#close-share-manager:hover {
    background: #5a6268;
}